export const state = () => ({
  token: '',
  role: '',
  account_id: '',
  oss_domain: '',
  commonUrlPath: '', //  当前角色的公共路径
})

export const mutations = {
  SetCommonUrlPath (state, path) {
    console.log('set path:', path)
    state.commonUrlPath = path
  },
  SetDomain (state, domain) {
    state.oss_domain = domain
  },
  SetToken (state, token) {
    state.token = token
  },
  SetAccountId (state, accountId) {
    state.account_id = accountId
  },
  SetRole (state, role) {
    state.role = role
  }
}